//
//  BoZeAddCarCollectionCell.swift
//  BoZeCalendar
//
//  Created by 李东 on 2024/4/11.
//

import UIKit

class BoZeAddCarCollectionCell: UICollectionViewCell {

    @IBOutlet weak var iconImgView: UIImageView!
    
    @IBOutlet weak var carTypeLabel: UILabel!
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
        
    }
    
    var model: BoZeTypeModel! {
        didSet {
            if model.isSelect {
                iconImgView.image = UIImage(named: model.selectIconName)
                carTypeLabel.textColor = .black
            }else{
                iconImgView.image = UIImage(named: model.unSelectIconName)
                carTypeLabel.textColor = .black.withAlphaComponent(0.3)
            }
            carTypeLabel.text = model.typeName
        }
    }

}
